package org.mch.biz.handle;

import org.mch.comm.itf.IMLogger;
import org.mch.comm.itf.ItfMHandler;
import org.mch.comm.loging.MComLogger;
import org.mch.comm.utils.MTools;

public abstract class AbstractHandler<T> implements ItfMHandler<T> {

	private MTools tool = new MTools();
	private IMLogger log ;

	public AbstractHandler() {
		super();
		log = createLog();
	}

	protected IMLogger createLog() {
		return new MComLogger(getClass());
	}

	public MTools tool() {
		return tool;
	}

	public IMLogger log() {
		return log;
	}

}
